<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="../gvis.js"></script>
<?php

  	require_once '../classes/gvisWriter.php';
  	$gvisJSObject = new gvisWriter(1,'imagesparkline', 'chart_div1', "wdith: 300 , height: 60, showAxisLines: false,  showValueLabels: false, labelPosition: 'left'");
  	$gvisJSObject->addColType(array('Age','number'));
   	$gvisJSObject->addColType(array('Weight', 'number'));    	 	 	
	$gvisJSObject->addRow(array(3, 33));
	$gvisJSObject->addRow(array(4, 54));
	$gvisJSObject->addRow(array(8, 70));
    $gvisJSObject->addRow(array(10, 67));
	$gvisJSObject->addRow(array(15, 89));
	$gvisJSObject->addRow(array(18, 120));								
  	echo $gvisJSObject->getScriptString();
?>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Example gvisWriter.php Sparkline Chart</title>
</head>
<body>
	<h1>Example gvisWriter.php Sparkline Chart</h1>
	<h2>Shows how to pass in Table Properties</h2>
    <div id='chart_div1'></div>
</body>
</html>